package cn.chenyumeng.blog.service.blog;

import cn.chenyumeng.blog.dto.BlogDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @program: blog->HomePageService
 * @description:
 * @author: cg
 * @create: 2020-08-10 19:39
 **/
public interface HomePageService {

    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<BlogDTO> queryAllByLimit(Integer page, Integer size);

    /**
     * 查询最新推荐
     * @param start
     * @param end
     * @return
     */
    List<BlogDTO> queryBlogLatestRecommend(Integer start, Integer end);

    /**
     * 博客搜索
     * @param content
     * @param page
     * @param size
     * @return
     */
    PageInfo<BlogDTO> search(String content, Integer page, Integer size);
}
